<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<link type="text/css" rel="stylesheet" href="/${initParam.context_root }/css/admin/admin_tab_cscenter.css">
<link type="text/css" rel="stylesheet" href="/${initParam.context_root }/css/admin/admin_notice.css">
<script type="text/javascript" src="/${initParam.context_root }/script/cscenter.js"></script>
<script type="text/javascript">
function cancelForm(){
	var f1 = window.document.form_name;
	//f1.action="/${initParam.context_root }/admin/cscenter/login/getContentBack.do?no=${requestScope.cscenter.cscenterNo }&page=${requestScope.page }&divide=${requestScope.cscenter.divide }";
	f1.action="/${initParam.context_root }/admin/cscenter/login/getContentBack.do?no=${requestScope.cscenter.cscenterNo }&page=${requestScope.page }";
	f1.submit();
}
</script>
<h1>${requestScope.divideText }</h1>
<h4>${requestScope.divideTextSub }</h4>
<h3>글수정</h3>
<form name="form_name" action="/${initParam.context_root }/admin/cscenter/login/modifyContent.do" method="post" onsubmit="return writeFormCheck(this);">
	<input type="hidden" name="cscenterNo" value="${requestScope.cscenter.cscenterNo }">
	<input type="hidden" name="nickname" value="${sessionScope.login_admin_info.nickname }">
	<input type="hidden" name="email" value="${sessionScope.login_admin_info.email }">
	<input type="hidden" name="divide" value="${requestScope.cscenter.divide }">
	<input type="hidden" name="page" value="${requestScope.page }">
	<table>
		<tr>
			<td width="100px">제목</td>
			<td><input type="text" id="subject" name="title" size="70" value="${requestScope.cscenter.title }"></td>
		</tr>
		<tr>
			<td>작성자 : </td>
			<td>${sessionScope.login_admin_info.nickname }</td>
		</tr>
		<tr>
			<td colspan="2">
				<textarea cols="100" rows="15" name="content">${requestScope.cscenter.content }</textarea>
			</td>
		</tr>
		<tr>
			<td colspan="2">
				<input type="button" value="취소" onclick="cancelForm();">
				<input type="submit" value="수정">
				<input type="reset" value="초기화" onclick="return resetForm();">
			</td>
		</tr>
	</table>
</form>